package web_programing.tcp.dictionary_service;

import java.io.IOException;
import java.net.ServerSocket;
import java.util.concurrent.TimeUnit;

/**
 * @author haomin
 * @date 2022/05/14 10:35
 **/
public class Error {
    public static void main(String[] args) throws InterruptedException, IOException {
        // 通过一个命令行程序，明确哪个pid 占用的端口
        // 命令行：cmd : netstat -nao  |  findstr  8080
        ServerSocket serverSocket = new ServerSocket(8080);
        TimeUnit.SECONDS.sleep(60);
        System.out.println("休眠结束！");
    }
}